<?php

use Hyperf\Database\Schema\Schema;
use Hyperf\Database\Schema\Blueprint;
use Hyperf\Database\Migrations\Migration;

class AddDailyPayInfoTable extends Migration
{
    protected $connection = 'stat';

    public function up(): void
    {
        Schema::table('stat_daily_pay_info', function (Blueprint $table) {
            $table->unsignedSmallInteger('invite_rmb_num')->default(0)->comment('邀请充值金额');
            $table->unsignedSmallInteger('uninvite_rmb_num')->default(0)->comment('非邀请充值金额');
            $table->unsignedSmallInteger('invite_user_num')->default(0)->comment('邀请充值人数');
            $table->unsignedSmallInteger('uninvite_user_num')->default(0)->comment('非邀请充值人数');
        });
    }

    public function down(): void
    {
        Schema::table('stat_daily_pay_info', function (Blueprint $table) {
            //
        });
    }
}
